﻿// ....................................................................................................................
//	Author: Copyright (C) 2012 Ing. Marek Hubal
//	Email: hubal@acasoftware.org
// ....................................................................................................................

using System;

namespace core
{
    /// <summary>Trieda IHorizontalSplitLine</summary>
	public class IHorizontalSplitLine : System.Windows.Forms.UserControl
	{
        /// <summary>Konstruktor</summary>
        public IHorizontalSplitLine()
        {
            SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer, true);
            Height = 2;
        }

        /// <summary>Metoda: OnPaint</summary>
        /// <param name="e">parameter</param>
        protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
        {
            e.Graphics.FillRectangle(System.Drawing.SystemBrushes.ButtonFace, e.ClipRectangle);
            System.Windows.Forms.ControlPaint.DrawBorder3D(e.Graphics, e.ClipRectangle, System.Windows.Forms.Border3DStyle.RaisedInner);
        }
    }
}
